import type { MenuParams } from '@/interfaces/data'
import request from '../utils/request'

export function queryMenuTree() {
  return request({
    url: '/webdaohang/daohang-plus-ui/menu/queryMenuTree',
    method: 'get',
  })
}

// 新增菜单
export function addMenu(data: MenuParams) {
  return request({
    url: '/webdaohang/daohang-plus-ui/menu/addMenu',
    method: 'post',
    data,
  })
}